﻿
using Inaction.Core;
namespace Inaction.Business
{
    public interface IEntity : Inaction.Core.IEntity, Core.ISavable
    {
        #region 属性
        bool AllowEdit { get; }
        bool AllowRemove { get; }
        IEntityList List { get; }
        #endregion

        #region 方法
        bool CheckError(out string errorInfo, string propertyName, object value);
        bool CanSetProperty(string property);
        bool CheckExistsForeignKeyChildrenData(ref string error, System.Data.IDbTransaction trans = null);
        #endregion
    }
}
